package org.shoukaiseki.common.utils;

import org.springframework.aop.framework.AopContext;
import org.springframework.beans.BeansException;

/**
 *
 **/
public class SpringUtils {

    /**
     * 获取aop代理对象
     *
     * @param invoker
     * @return
     */
    @SuppressWarnings("unchecked")
    public static <T> T getAopProxy(T invoker)
    {
        return (T) AopContext.currentProxy();
    }



}
